﻿// See https://aka.ms/new-console-template for more information

using A2;

IShape rectangle = new Rectangle(5, 10);
IShape square = new Square(5);
IShape triangle = new Triangle(3, 4, 5);

Console.WriteLine($"Rectangle Area: {rectangle.CalculateArea()} Valid: {rectangle.IsValid()}");
Console.WriteLine($"Square Area: {square.CalculateArea()} Valid: {square.IsValid()}");
Console.WriteLine($"Triangle Area: {triangle.CalculateArea()} Valid: {triangle.IsValid()}");